package com.zzyl.nursing.service;

import java.util.List;

import com.zzyl.nursing.domain.Elder;
import com.zzyl.nursing.domain.NursingTask;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zzyl.nursing.dto.CancelTaskDto;
import com.zzyl.nursing.dto.NursingExecuteTaskDto;
import com.zzyl.nursing.dto.NursingTaskPageDto;
import com.zzyl.nursing.dto.TaskDto;
import com.zzyl.nursing.vo.NursingTaskDetailVo;
import com.zzyl.nursing.vo.NursingTaskVo;

/**
 * 护理任务Service接口
 */
public interface INursingTaskService extends IService<NursingTask>
{
    /**
     * 查询护理任务
     *
     * @param id 护理任务主键
     * @return 护理任务
     */
    public NursingTaskDetailVo selectNursingTaskById(Long id);

    /**
     * 查询护理任务列表
     *
     * @param nursingTaskPageDto 护理任务
     * @return 护理任务集合
     */
    public List<NursingTaskVo> selectNursingTaskList(NursingTaskPageDto nursingTaskPageDto);

    /**
     * 新增护理任务
     *
     * @param nursingTask 护理任务
     * @return 结果
     */
    public int insertNursingTask(NursingTask nursingTask);

    /**
     * 修改护理任务
     *
     * @param nursingTask 护理任务
     * @return 结果
     */
    public int updateNursingTask(NursingTask nursingTask);

    /**
     * 批量删除护理任务
     *
     * @param ids 需要删除的护理任务主键集合
     * @return 结果
     */
    public int deleteNursingTaskByIds(Long[] ids);

    /**
     * 删除护理任务信息
     *
     * @param id 护理任务主键
     * @return 结果
     */
    public int deleteNursingTaskById(Long id);

    /**
     * 取消任务 d15 -5
     */
    int cancelTask(CancelTaskDto cancelTaskDto);

    /**
     * 执行任务 d15 -6
     */
    int executeTask(NursingExecuteTaskDto nursingExecuteTaskDto);

    /**
     * 执行任务 d15 -7
     */
    int updateTime(TaskDto taskDto);

    void createMonthTask(Elder elder);
}
